<!DOCTYPE html>
<html lang="zh-CN"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorator="layout/default">
<head>
<meta charset="UTF-8">
<title>用户管理</title>
<script>
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#userSearchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<div layout:fragment="content" th:remove="tag">
		<div
			th:replace="fragments/tool :: tipMessage (type='',content=${message})"
			th:remove="tag"></div>
		<div class="row">
			<div class="col-md-12">
				<!-- BEGIN PAGE TITLE & BREADCRUMB-->
				<ul class="page-breadcrumb breadcrumb">
					<li><i class="fa fa-home"></i> <a th:href="@{/}">首页</a> <i
						class="fa fa-angle-right"></i></li>
					<li><a href="#">个人中心</a> <i class="fa fa-angle-right"></i></li>
					<li><a href="#">已绑定设备</a></li>
				</ul>
				<!-- END PAGE TITLE & BREADCRUMB-->

			</div>
		</div>


		<div class="row profile">
			<div class="col-md-12">
				<!--BEGIN TABS-->
				<div class="tabbable tabbable-custom tabbable-full-width">
					<div class="tab-content">
						<div class="row search-form-default alert alert-info">
								<div class="col-md-12">
									<div class="col-md-3 count-logs">
										已绑定的设备信息：（
										<th:block th:text="${devices.size()}"></th:block>
										）台
									</div>
								</div>
						</div>
						<div class="tab-pane active" id="device_tab_1_1">
							<div class="table-responsive">
								<table
									class="table table-striped table-bordered table-advance table-hover">
									<thead>
										<tr>
											<th>序号</th>
											<th>操作系统</th>
											<th>设备ID</th>
											<th>操作系统版本</th>
											<th>注册时间</th>
											<th shiro:has-permission="sys:devices:delete">操作</th>
										</tr>
									</thead>
									<tbody>
										<tr th:each="device,iterStat : ${devices}">
											<td th:text="${iterStat.count}">count</td>
											<td
												th:text="${#strings.equals(device.deviceType, '0')}?'IOS':'安卓'">deviceType</td>
											<td th:text="${device.deviceInstallCode}">deviceInstallCode</td>
											<td th:text="${device.systemVersion}">systemVersion</td>
											<td
												th:text="${#dates.format(device.registerTime, 'yyyy-MM-dd HH:mm:ss')}">registerTime</td>
											<td shiro:has-permission="sys:devices:delete"><a class="btn default btn-xs blue-stripe"
												th:href="@{/sys/my/release(deviceId=${device.deviceInstallCode})}"
												onclick="return App.confirm('确认解绑设备吗？', this.href)">解除绑定</a>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="row margin-top-20">
								<th:block th:utext="${page}" />
							</div>

						</div>
					</div>
				</div>
			</div>


		</div>
	</div>

</body>
</html>
